<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<script type="text/javascript">
	$(document).ready(function(){
		$("#write").submit(function(){
			if($("#content").val()==""){
				alert("내용을 입력하세요");
				return false;
			}
		});
		 $("#listBtn").click(function(){
	  			location.href="${initParam.root}mypage/auth_diaryList.do";
	  	});
	});
</script>
</head>
<h3>다이어리 작성</h3>
<form action="${initParam.root}mypage/auth_writeDiary.do" method="post" id="write" enctype="multipart/form-data">
첨부 <input type="file" name="uploadFile">
<textarea cols="80" rows="15" id="content" name="content" placeholder="내용"></textarea>
<input type="submit" value="등록">
<input type="button" value="목록" id="listBtn">
</form>


